home *** CD-ROM | disk | FTP | other *** search
/ Interactive Quarterly / The Best of New Machine Publishing 1 - Disc 4: Interactive Quarterly.iso / pc / toc.dir / 00149_Print Button.ls < prev    next >
Encoding:
Text File  |  1997-01-16  |  1.7 KB  |  36 lines

  1. on mouseUp
  2.   global payment, cardnumber, expires, birthday
  3.   cursor(4)
  4.   set doc to new(xtra("printomatic_lite"))
  5.   if not objectp(doc) then
  6.     exit
  7.   end if
  8.   if the hilite of member "Check" = 1 then
  9.     set payment to "Check"
  10.     set cardnumber to " "
  11.     set expires to " "
  12.   else
  13.     if the hilite of member "MC" then
  14.       set payment to "MasterCard"
  15.       set cardnumber to the text of member "Card Number"
  16.       set expires to the text of member "Expires"
  17.     else
  18.       if the hilite of member "Visa" then
  19.         set payment to "Visa"
  20.         set cardnumber to the text of member "Card Number"
  21.         set expires to the text of member "Expires"
  22.       else
  23.         if the hilite of member "Discover" then
  24.           set payment to "Discover"
  25.           set cardnumber to the text of member "Card Number"
  26.           set expires to the text of member "Expires"
  27.         end if
  28.       end if
  29.     end if
  30.   end if
  31.   set birthday to the text of member "Birthday"
  32.   append(doc, RETURN & RETURN & "Interactive Quarterly Suscription Form" & RETURN & RETURN, the text of member "Offer" & RETURN & RETURN, "Name: ", the text of member "Name" & RETURN, "Address: ", the text of member "Address" & RETURN, "City: ", the text of member "City" & RETURN, "State: ", the text of member "State" & RETURN, "Zip: ", the text of member "Zip" & RETURN, "Country: ", the text of member "Country" & RETURN, "Phone: ", the text of member "Phone" & RETURN, "Fax: ", the text of member "Fax" & RETURN, "Email: ", the text of member "Email" & RETURN & RETURN, "Payment: ", payment & RETURN, "Card #: ", cardnumber & RETURN, "Expiration Date: ", expires & RETURN, "Date Of Birth: ", birthday & RETURN & RETURN, "Signature: ___________________________________________")
  33.   print(doc)
  34.   cursor(-1)
  35. end
  36.